package com.answer.service;

import com.answer.model.dto.user.UserLoginDTO;
import com.answer.model.dto.user.UserQueryDTO;
import com.answer.model.dto.user.UserRegisterDTO;
import com.answer.model.dto.user.UserUpdateDTO;
import com.answer.model.entity.User;
import com.answer.model.reslut.ResultPage;
import com.answer.model.vo.UserVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author haoshuai
* @description 针对表【user(用户)】的数据库操作Service
* @createDate 2024-06-29 15:23:08
*/
public interface UserService extends IService<User> {


    UserVo login(UserLoginDTO userLoginDTO);

    Integer logout();


    UserVo register(UserRegisterDTO userRegisterDTO);


    ResultPage<UserVo> queryAll(UserQueryDTO userQueryDTO);


    UserVo queryOneById(Long id);


    Boolean update(UserUpdateDTO userUpdateDTO);

}
